//
//  AppDelegate.m
//  macapp
//
//  Created by Cocoa on 2020/4/7.
//  Copyright © 2020 Talent. All rights reserved.
//

#import "AppDelegate.h"
#import "MainWC.h"

@interface AppDelegate ()

@property (nonatomic, strong) NSWindow *window;

@end

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application
   
    MainWC *wc = [[MainWC alloc] initWithWindowNibName:NSStringFromClass([MainWC class]) owner:self];
    wc.window.title = @"xxxx";
    self.window = wc.window;
    [wc showWindow:nil];
    
}


- (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application

}

- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender {
    return YES;
}





@end
